package mapper;

import domain.Brand;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandMapper {
    List<Brand> selectAll();

    //    Brand selectById(@Param("id") int id, @Param("orderBy") String orderBy);
//    Brand selectById(@Param("id") int id, @Param("orderBy") String orderBy);
    Brand selectById(@Param("id") int id);

//    List<Brand> selectByCondition(@Param("brandName") String brandName,
//                                  @Param("companyName")String companyName,
//                                  @Param("status")Integer status);


    List<Brand> selectByCondition(Brand brand);

    int update(Brand brand);

    //    批量插入
    int batchInsert(List<Brand> brands);

    
}
